package com.xuecheng.teaching.service;

import com.xuecheng.commons.model.dto.CommentStatusDto;
import com.xuecheng.commons.model.dto.CourseCommentDto;
import com.xuecheng.commons.model.dto.PageRequest;
import com.xuecheng.commons.model.vo.CommentReplyVo;
import com.xuecheng.commons.model.vo.PageResponseResult;
import com.xuecheng.commons.model.vo.ResponseResult;
import com.xuecheng.commons.model.vo.StarRankVo;
import com.xuecheng.teaching.domain.CourseComment;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author itheima
 * @since 2022-08-13
 */
public interface CourseCommentService extends IService<CourseComment> {

    //门户详情页----评论课程
    ResponseResult courseComment(CourseCommentDto dto);

    //门户详情页----课程评论列表
    ResponseResult pageCourseComment(PageRequest request, CommentStatusDto dto);

    //门户详情页----课程评论统计
    ResponseResult countCourseComment(Integer targetId);

    //评论信息模糊查询
    ResponseResult pageByName(String courseName);
}
